[IA64] fix build with sn2 and machvec support
authorawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Wed, 13 Dec 2006 18:18:16 +0000 (11:18 -0700)
committerawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Wed, 13 Dec 2006 18:18:16 +0000 (11:18 -0700)
Initial changes to make tree build again after applying new files for
sn2 and machvec support, without actually enabling the new features

Signed-off-by: Jes Sorensen <jes@sgi.com>
xen/include/asm-ia64/linux-xen/asm/sn/intr.h
xen/include/asm-ia64/linux-xen/asm/sn/nodepda.h
xen/include/asm-ia64/linux-xen/asm/sn/types.h
xen/include/asm-ia64/linux-xen/asm/types.h

index 12b54ddb06be2a7e1d52365d4846fbc4a0a48c4c..5e7ef5c993958321598a468a463497574a7e0e30 100644 (file)
@@ -9,7 +9,11 @@
 #ifndef _ASM_IA64_SN_INTR_H
 #define _ASM_IA64_SN_INTR_H
 
+#ifndef XEN
 #include <linux/rcupdate.h>
+#else
+#include <linux/list.h>
+#endif
 #include <asm/sn/types.h>
 
 #define SGI_UART_VECTOR                0xe9
@@ -51,7 +55,9 @@ struct sn_irq_info {
        int             irq_flags;      /* flags */
        int             irq_share_cnt;  /* num devices sharing IRQ   */
        struct list_head        list;   /* list of sn_irq_info structs */
+#ifndef XEN
        struct rcu_head         rcu;    /* rcu callback list */
+#endif
 };
 
 extern void sn_send_IPI_phys(int, long, int, int);
index 6f6d69e39ff59075af1637eb986ae1aefb855bc9..ffa43024231c5875fdc54fa8b263618652eafc21 100644 (file)
@@ -13,7 +13,9 @@
 #include <asm/irq.h>
 #include <asm/sn/arch.h>
 #include <asm/sn/intr.h>
+#ifndef XEN
 #include <asm/sn/bte.h>
+#endif
 
 /*
  * NUMA Node-Specific Data structures are defined in this file.
@@ -38,12 +40,14 @@ struct phys_cpuid {
 struct nodepda_s {
        void            *pdinfo;        /* Platform-dependent per-node info */
 
+#ifndef XEN
        /*
         * The BTEs on this node are shared by the local cpus
         */
        struct bteinfo_s        bte_if[MAX_BTES_PER_NODE];      /* Virtual Interface */
        struct timer_list       bte_recovery_timer;
        spinlock_t              bte_recovery_lock;
+#endif
 
        /* 
         * Array of pointers to the nodepdas for each node.
index 8e04ee211e59d5f7081ed7082a681b7838e51d4a..6df228178acffd64b87edc4120f57c5cfdc431ff 100644 (file)
@@ -20,7 +20,9 @@ typedef unsigned char slotid_t;       /* slot (blade) within module */
 typedef unsigned char  slabid_t;       /* slab (asic) within slot */
 typedef u64 nic_t;
 typedef unsigned long iopaddr_t;
+#ifndef XEN
 typedef unsigned long paddr_t;
+#endif
 typedef short cnodeid_t;
 
 #endif /* _ASM_IA64_SN_TYPES_H */
index d2c04d3f6a948bacd590cff74c96785b45c39d56..3dcfa34ae7f32e9c31b30e8d18ebc96cfe2c92b8 100644 (file)
@@ -74,6 +74,14 @@ typedef unsigned short kmem_bufctl_t;
 
 #ifdef XEN
 #include <asm/xentypes.h>
+
+#ifndef __ASSEMBLY__
+typedef unsigned int gfp_t;
+typedef u64 resource_size_t;
+typedef u32 dev_t;
+typedef unsigned int mode_t;
+#define THIS_MODULE    NULL
+#endif
 #endif
 
 #endif /* _ASM_IA64_TYPES_H */